
import java.util.List;


import javafx.application.Application;
import javafx.event.ActionEvent;
import javafx.event.EventHandler;
import javafx.scene.Group;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.scene.control.Label;
import javafx.scene.control.TextField;
import javafx.scene.layout.HBox;
import javafx.scene.layout.VBox;
import javafx.stage.Stage;

public class test extends Application {

	@Override
	public void start(Stage primaryStage) {
		Group root = new Group();
		TextField inText = new TextField();
		Button createSingle = new Button("单例模式创建");
		Button createMultiple = new Button("多例模式创建");
		HBox hbox = new HBox();
		Label textLabel = new Label();

		VBox vbox = new VBox();
		hbox.getChildren().add(inText);
		hbox.getChildren().add(createSingle);
		hbox.getChildren().add(createMultiple);
		vbox.getChildren().addAll(hbox, textLabel);
		root.getChildren().addAll(vbox);
		
		Scene scene = new Scene(root, 500, 500);
		primaryStage.setScene(scene);
		primaryStage.show();
		

	}
	
	public static void main(String[] args) {
		
		launch(args);
		
	}

}